import { App } from "vue"
import dayjs from "dayjs"
import utc from "dayjs/plugin/utc"
dayjs.extend(utc)
export default function registerFilters(app: App) {
  app.config.globalProperties.$filters = {
    dateFormatUTC(utcString: string, dateType = "YYYY-MM-DD HH:MM:ss") {
      return dayjs.utc(utcString).format(dateType)
    },
  }
}
